

cc.Class({
    extends: cc.Component,

    properties: {
        content : cc.Node,
        photoPortrait : cc.Prefab,
        Label : cc.Label,
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {

    },

    updateState (data) 
    {
        this.Label.string = data;
        for(var i = 0;i < data;++i)
        {
            var tem = cc.instantiate(this.photoPortrait);
            this.content.addChild(tem);
        }
    },
});
